﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ResetPassword.aspx.cs" Inherits="SY.WebSite.Web.View.ResetPassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>密码重置 - <%=Settings.Title%></title>
    <link href="<%=Settings.StaticFileDomain%>/Themes/Foundation/stylesheets/foundation.min.css" rel="stylesheet" type="text/css" />
    <link href="<%=Settings.StaticFileDomain%>/Themes/Default/index.css" rel="stylesheet" type="text/css" />
    <script src="<%=Settings.StaticFileDomain%>/Scripts/jquery-1.6.1.min.js" type="text/javascript"></script>
    <!--[if lt IE 9]>
        <script src="<%= Settings.StaticFileDomain %>/Scripts/html5.js" type="text/javascript"></script>
    <![endif]-->
</head>
<body>
    <div class="container top-bar">    
        <div class="attached">
            <div class="name">
                <span><a href="javascript:void(0)"><%=Settings.Title%></a></span>
            </div>
            <ul class="right">
                <li class="choose">
  			      <a href="javascript:void(0)">帐号管理</a>
                  <div>
                    <% if (CurrentUser.UserType == 100) {%>
                    <a href="<%= Settings.DomainUrl %>/Admin/Manage.aspx">后台管理</a>
                    <% }%>
                    <a href="<%= Settings.DomainUrl %>/ResetPassword.aspx">修改密码</a>
                    <a id="logout" href="javascript:void(0)">退出登录</a>
                  </div>
  			    </li>
            </ul>
        </div>
    </div>

    <header class="big-back i2">
        <div class="row">
          <div class="six columns">
            <h6>
                <% if (Request["first"] != null) { %>
                <%= CurrentUser.UserName%> 您好，出于安全性考虑，建议您更改初始密码：）
                <% } else{ %>
                   修改密码
                <% } %>
            </h6>
            <table>
                <tr><th class="four">原始密码</th><td><input id="oldpassword" type="password" class="date" style="width:300px" /></td></tr>
                <tr><th>新密码</th><td><input id="newpassword" type="password" class="date" style="width:300px" /></td></tr>
                <tr><th>确认密码</th><td><input id="checkpassword" type="password" class="date" style="width:300px" /></td></tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <input id="btnReset" type="button" class="button small" value="更改密码" />
                        <% if (Request["first"] != null) {%>
                        &nbsp;&nbsp;<a href="<%= Request.QueryString["rtn"]??"" %>">跳过该步骤</a>
                        <% }%>
                    </td>                    
                </tr>
            </table>
          </div>
        </div>
    </header>

    <div class=" footer">CopyRight &copy; <%= DateTime.Now.Year %> 福州素天下食品有限公司</div>
    <script src="<%= Settings.StaticFileDomain %>/Scripts/page/resetpassword.js" type="text/javascript"></script>

    <script type="text/javascript">
        page.rtn = '<%= Request.QueryString["rtn"]??"" %>';

        $("#logout").click(function () {
            $.post("/handler/user.ashx?action=logout", {}, function (data) {
                window.location.reload();
            }, "json");
        });
    </script>
</body>
</html>